<?php
namespace app\beautiful\model\logs;

use app\common\model\CommonModel;
use app\beautiful\model\mall\GoodsModel;

class GoodsViewsModel extends CommonModel{
    protected  $name = 'beautiful_goods_views';
    protected  $pk   = 'view_id';

    public function goods()
    {
        return $this->hasOne(GoodsModel::class,'goods_id','goods_id');
    }
}

